str="itheima is a brand of itcats"
num=0

for i in str:
    print(i)
    if i=='a':
        num+=1
print(num)